package com.yuanheng100.asset.consts.repay;

/**
 * 还款方式
 * @author Bai Song
 *
 */
public enum RepayType
{

    /**
     * 按期付息，到期还本
     */
    REGULAR_INTEREST((short)10, "按期付息，到期还本"),
    
    /**
     * 一次性还本付息
     */
    PRINCINPAL_INTEREST_OUTRIGHT((short)20, "一次性还本付息"),
    
    /**
     * 等额本息
     */
    AVERAGE_PRINCINPAL_INTEREST((short)30, "等额本息"),
    
    /**
     * 等额本金
     */
    AVERAGE_PRINCINPAL((short)40, "等额本金");
    
    private Short code;

    private String name;
    
    private RepayType(Short code, String name)
    {
        this.code = code;
        this.name = name;
    }

    /**
     * @return the code
     */
    public Short getCode()
    {
        return code;
    }

    /**
     * @param code the code to set
     */
    public void setCode(Short code)
    {
        this.code = code;
    }

    /**
     * @return the name
     */
    public String getName()
    {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name)
    {
        this.name = name;
    }
    
    
}
